import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'virtual:windi.css'
import router from './router/index'
import App from './App.vue'
import 'element-plus/dist/index.css'
import i18n from '@/i18n';
import * as ElIconModules from '@element-plus/icons'
import { api } from '@/utils/network/index.js'

// import 'assets/reset.css'
const app = createApp(App);
// 全局注册el-icon
for (let iconName in ElIconModules) {
  app.component(iconName, ElIconModules[iconName])
}
app.use(router)
app.use(ElementPlus).use(i18n)
app.config.globalProperties.api = api
app.mount('#app')
